import { Module } from "@nestjs/common";
import { TypeOrmModule } from "@nestjs/typeorm";
import { SysRole } from "@/database/entity/SysRole";
import { SysRoleMenu } from "@/database/entity/SysRoleMenu";
import { SysRolePermission } from "@/database/entity/SysRolePermission";
import { SysUserRole } from "@/database/entity/SysUserRole";
import { RoleController } from "./role.controller";
import { RoleService } from "./role.service";

@Module({
    imports: [TypeOrmModule.forFeature([SysRole, SysRoleMenu, SysRolePermission, SysUserRole])],
    controllers: [RoleController],
    providers: [RoleService],
})
export class RoleModule {}
